using MyCompany.WebCrawler.Repositories;
using MyCompany.WebCrawler.Tasks;

namespace MyCompany.WebCrawler.Test.Domain.ThreadingTests
{
    public class CounterTask : ITask
    {
        public static string Results { get; set; }
        int threadNumber;

        public CounterTask(Repository repository, int threadNumber)
        {
            Results = "";
            this.threadNumber = threadNumber;
        }

        public void Execute()
        {
            Results = string.Format("{0} {1}", Results, threadNumber);
        }
    }
}